import { createApp } from 'vue';

// 路由配置导入
import { router } from './router/index';

//饿了么plus样式
import 'element-plus/dist/index.css';

//导入pinia
import { createPinia } from 'pinia';

import App from './App.vue';

import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}

// 使用路由
app.use(createPinia());

app.use(router);

app.mount('#app');

//根地址
//跟地址/about
